﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sudoku
{
    public partial class Name : Form
    {
        string name;
        public Name()
        {
            InitializeComponent();
        }
        private void ReadName()
        {
            this.name = tbName.Text;
        }
        public string GetName
        {
            get { return name; }
        }

        private void btnNameOk_Click(object sender, EventArgs e)
        {
            ReadName();

        }

        private void tbName_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                btnNameOk_Click(sender, e);
            }
        }
    }
}
